package one;

/**
 * @Author:DarknessShadow
 * @description:单线程单例模式
 * @date 2020/5/12 9:32
 */
public class Singleton {
    private static Singleton  singleton  = new Singleton();
    private Singleton(){
        System.out.println("生成一个实例！！！！");
    }
    public static Singleton getInstance(){
        return singleton;
    }
}
